﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHUTRANG.Test.Test_1.ex1
{
   public class tamgiac:GeometricObject
    {
         public override double Area(object obj)
        {
            double a=0, b=0, c=0;
            double p = (a + b + c) / 2;
            double S = Math.Sqrt(p * (p - a) * (p - b) * (p - c));
            return S;

        }

         public override double Perrimetter(object obj)
         {
             double a = 0, b = 0, c = 0;
             double p = (a + b + c) / 2;
             return p;
         }

    }
}
